import request from '@/utils/request'

// 获取学生列表，按条件查询
export function getStudentList(data) {
  return request({
    url: '/student/list',
    method: 'post',
    data
  })
}

// 查询班级学生列表
export function getStudentListByClass(id) {
  return request({
    url: '/student/list-by-class/'+id,
    method: 'get'
  })
}

// 教师查询幼儿信息
export function getStudensInfo(data) {
  return request({
    url: '/student/info',
    method: 'get',
    params: data
  })
}

// 教师导出幼儿信息
export function exportStudentsInfo(id) {
  return request({
    url: '/student/excel/' + id,
    method: 'get'
  })
}

// 学生修改个人资料
export function updateStudentPersonalInfo(data) {
  return request({
    url: '/student/info',
    method: 'put',
    data
  })
}

//批量设置学生行政班
export function setStuToClass(data) {
  return request({
    url: '/student/class',
    method: 'put',
    data
  })
}

//获取未加入行政班的学生列表
export function getStu_noClass(data) {
  return request({
    url: '/student/no-class',
    method: 'get',
    params: data
  })
}
